export default {
  data() {
    return {};
  },
  computed: {
    fileds() {
      return [
        {
          key: "account",
          filedType: "Input",
          layout: {
            span: 4,
          },
          itemProps: {
            prop: "account",
          },
          props: {
            placeholder: "请输入账号",
          },
        },
        {
          key: "name",
          filedType: "Input",
          layout: {
            span: 4,
          },
          itemProps: {
            prop: "name",
          },
          props: {
            placeholder: "请输入姓名",
          },
        },
        {
          key: "mobile",
          filedType: "Input",
          layout: {
            span: 4,
          },
          itemProps: {
            prop: "mobile",
          },
          props: {
            placeholder: "请输入手机号码",
            type: "number",
          },
        },
        {
          key: "orgName",
          filedType: "Input",
          layout: {
            span: 4,
          },
          itemProps: {
            prop: "orgName",
          },
          props: {
            placeholder: "请输入机构名称",
          },
        },
        {
          key: "userType",
          filedType: "Select",
          layout: {
            span: 4,
          },
          itemProps: {
            prop: "userType",
          },
          props: {
            placeholder: "请选择是否注册",
            options: [
              {
                label: "是",
                value: 1,
              },
              {
                label: "否",
                value: 0,
              },
            ],
          },
        },
        {
          key: "status",
          filedType: "Select",
          layout: {
            span: 4,
          },
          itemProps: {
            prop: "status",
          },
          props: {
            placeholder: "请选择状态",
            options: [
              { value: 0, label: "无效" },
              { value: 1, label: "有效" },
              { value: 8, label: "冻结" },
              { value: 9, label: "删除" },
            ],
          },
        },
      ];
    },
    column() {
      return [
        {
          type: "selection",
          width: "55",
        },
        {
          type: "index",
          width: "50",
          label: "序号",
        },
        {
          prop: "account",
          label: "账号",
        },
        {
          prop: "name",
          label: "姓名",
        },
        {
          prop: "mobile",
          label: "手机号码",
        },
        {
          prop: "deptName",
          label: "工作单位",
        },
        {
          prop: "orgName",
          label: "机构名称",
        },
        {
          prop: "userType",
          label: "是否注册",
          isSlot: true,
        },
        {
          prop: "status",
          label: "状态",
          isSlot: true,
        },
        {
          prop: "operate",
          label: "操作",
          width: "250",
          isSlot: true,
        },
      ];
    },
  },
};
